package com.example.spring;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/*在spring启动后，将手动添加的包自动扫描，并加入到spring的IOC容器中*/
@SpringBootApplication(scanBasePackages = "com.*")
@MapperScan(basePackages = "com.dao")
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

}
